# knowledge/core/__init__.py

"""
知识库核心应用模块
包含主应用类和系统集成
"""

from knowledge.core.kb_application import KnowledgeBaseApplication

__all__ = [
    "KnowledgeBaseApplication",
]

class KBApplicationError(Exception):
    """知识库应用异常"""
    pass

class KnowledgeBaseNotFoundError(Exception):
    """知识库未找到异常"""
    pass

class IncrementalUpdateError(Exception):
    """增量更新异常"""
    pass

# 应用配置
APP_CONFIG = {
    "default_knowledge_root": "../resource",
    "supported_collections": ["enterprise_knowledge", "department_docs", "project_docs"],
    "backup_enabled": True,
    "auto_save_registry": True
}

# 导出常量和异常
__all__.extend([
    "KBApplicationError", 
    "KnowledgeBaseNotFoundError",
    "IncrementalUpdateError",
    "APP_CONFIG",
])

# print("✅ 知识库核心应用模块已加载")